<form action="<?php echo url_for('template_sendtest', $template) ?>" method="get">
    <input type="text" name="recipients" id="testTemplateRecipients"/>    
    <input type="submit" value="Send Test Mail" /> <br/>
    <span class="testTemplateRecipientsHint">Insert mail addresses separated by ","</span>
</form>
<table>
  <tbody>
    <tr>
      <th>Template:</th>
      <td><?php echo $template->getTemplateId() ?></td>
    </tr>
    <tr>
      <th>Name:</th>
      <td><?php echo $template->getName() ?></td>
    </tr>
    <tr>
      <th>Language:</th>
      <td><?php echo $template->getLanguage() ?></td>
    </tr>
    <tr>
      <th>Country:</th>
      <td><?php echo $template->getCountry() ?></td>
    </tr>
    <tr>
      <th>Sender name:</th>
      <td><?php echo $template->getSenderName() ?></td>
    </tr>
    <tr>
      <th>Sender address:</th>
      <td><?php echo $template->getSenderAddress() ?></td>
    </tr>
    <tr>
      <th>Subject:</th>
      <td><?php echo $template->getSubject() ?></td>
    </tr>
    <tr>
      <th>Body txt:</th>
      <td><?php echo $template->getBodyTxt() ?></td>
    </tr>
    <tr>
      <th>Body html:</th>
      <td>
          <iframe src="<?php echo url_for('template_preview', $template) ?>" ></iframe>
      </td>
    </tr>
    <tr>
      <th>Cc:</th>
      <td><?php echo $template->getCc() ?></td>
    </tr>
    <tr>
      <th>Bcc:</th>
      <td><?php echo $template->getBcc() ?></td>
    </tr>
    <tr>
      <th>Created at:</th>
      <td><?php echo $template->getCreatedAt() ?></td>
    </tr>
    <tr>
      <th>Updated at:</th>
      <td><?php echo $template->getUpdatedAt() ?></td>
    </tr>
    <tr>
      <th>Deleted at:</th>
      <td><?php echo $template->getDeletedAt() ?></td>
    </tr>
  </tbody>
</table>

<hr />

<a href="<?php echo url_for('template/edit?template_id='.$template->getTemplateId()) ?>">Edit</a>
&nbsp;
<a href="<?php echo url_for('template/index') ?>">List</a>
&nbsp;

